package cn.tedu.mapper;

import cn.tedu.pojo.Book;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface BookMapper {
    public List<Book> findAllBooks();

    int addBook(@Param("book") Book book);

    Book selectBookById(@Param("id") int id);

    int updateBook(@Param("book") Book book);

    int deleteBookById(@Param("id") int id);
}
